package cc.android.testapp.xp.hooker.textmodify.et;

import android.view.View;
import android.widget.TextView;

public class ET_TextEdit implements IET {

    protected TextView mTView = null;

    @Override
    public void setText(CharSequence pStr) {
        this.mTView.setText(pStr);
    }

    @Override
    public CharSequence getText() {
        return this.mTView.getText();
    }

    @Override
    public View getOrigin() {
        return this.mTView;
    }

    @Override
    public void setOrigin(View pOrigin) {
        this.mTView = (TextView) pOrigin;
    }

    @Override
    public IET copy() {
        ET_TextEdit t = new ET_TextEdit();
        t.setOrigin(this.mTView);
        return t;
    }

}